<?php

namespace App\Models\User;

use Illuminate\Database\Eloquent\Model;

class Faces extends Model
{
    protected  $table ="user_faces";

    protected $fillable = [
        'x_uid','attach_id', 'value','star','similar','face_token','type'
    ];
    protected $hidden = [
        'remember_token',
    ];

    public function users(){
        return $this->hasOne('App\Models\WxUser','id','x_uid');
    }
    
    public function attach(){
        return $this->hasOne('App\Models\Attachs','id','attach_id');
    }

}
